package com.hxy.manager.entity;

import lombok.Data;


/**
 * @program erp-server
 * @description ${description}* @author eric* @date 2020/2/27
 */
@Data
public class BaseResponse<T> {
    String message;
    Integer code;
    T data;

    public BaseResponse() {
    }

    public BaseResponse(int code, String msg) {
        this.setCode(code);
        this.setMessage(msg);
    }

    public BaseResponse(int code, String msg, T data) {
        this.setCode(code);
        this.setMessage(msg);
        this.setData(data);
    }
}
